<div id="page-wrapper">
  <div class="row">
    <div class="col-sm-12">
      <div class="panel panel-default">
        <div class="panel-heading">
          <span class="judul-page">Permintaan Update</span>
          <span class="pull-right">
              <!--<a href="#" class="btn btn-primary btn-xs"><span class="glyphicon glyphicon-print"></span>&nbsp;Cetak</a>
              <a href="<?php echo site_url('member/add')?>" class="btn btn-warning btn-xs" title="Tambah"><span class="glyphicon glyphicon-plus"></span>&nbsp;Tambah Data</a>-->
          </span>
          <div class="clearfix"></div>
        </div>
        <div class="panel-body">
          <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover">
              <thead>
                <tr>
                  <th width="50">No</th>
                  <th>Nama Lengkap</th>
                  <th>Email</th>
                  <th>Telepon</th>
                  <th>Tagihan</th>
                  <th width="100">Aksi</th>
                </tr>
              </thead>
              <tbody>
                <?php 
                $no = 1;
                if(isset($hasil)){
                  foreach($hasil as $val){
                  ?>
                    <tr>
                      <td><?php echo $no; ?></td>
                      <td>
                        <?php 
                          if($val->status_cek == '0'){
                            echo "<b>".$val->nama_lengkap."</b>"; 
                          }else{
                            echo $val->nama_lengkap; 
                          }
                        ?>
                      </td>
                      <td><?php echo $val->email; ?></td>
                      <td><?php echo format_telepon($val->telp); ?></td>
                      <td align="right"><?php echo format_angka($val->tagihan); ?></td>
                      <td align="center">
                        <a href="<?php echo site_url('member/edit/'.$val->id_member.'');?>" class="btn btn-success btn-xs" title="Edit"><span class="glyphicon glyphicon-edit"></span></a>
                      </td>
                    </tr>
                  <?php
                  $no++;
                  }
                }
                ?>
              </tbody>
            </table>
          </div>
          <div class="clearfix"></div>
          <center>
            <?php
            echo ! empty($pagination) ? '<center><div class="pagination">' . $pagination . '</div></center>' : '';
            ?>
          </center>
        </div>
      </div>
    </div>
  </div>
</div>